package com.lyp.springboot.support;

/**
 * 统一返回数据格式
 */
public class ActionResult {
    public final static ActionResult SUCCESS = new ActionResult();

    private String status = "1";

    private String msg;

    public ActionResult() {
    }
    public ActionResult(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "ActionResult{" +
                "status='" + status + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
